package com.cse587.gae.dto;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="countryList")
public class CountryList {
	private List<CountryDto> countryList;
	private int count;
	
	public CountryList(){
		this.countryList = new ArrayList<CountryDto>();
	}
	
	public CountryList(List<CountryDto> country) {
		super();
		this.countryList = country;
	}
	@XmlElement(name="country")
	public List<CountryDto> getCountryList() {
		return countryList;
	}

	public void setCountryList(List<CountryDto> country) {
		this.countryList = country;
	}

	public int getCount() {
		count = this.countryList.size(); 
		return count;
	}
}
